import http from './index'

export const getList = (params) => http({
  url: '/user/showUserList',
  method: 'GET',
  params,
})

export const create = (data) => http({
  url: '/user/addUser',
  method: 'POST',
  data,
})

export const update = (data) => http({
  url: '/user/updateUser',
  method: 'POST',
  data,
})

export const detail = (params) => http({
  url: '/user/selectItem',
  method: 'GET',
  params,
})

export const rePass = (data) => http({
  url: '/user/rePass',
  method: 'POST',
  data,
})

export const del = (data) => http({
  url: '/device-os/area/delete',
  method: 'POST',
  data,
})
export const delOta = (data) => http({
  url: '/user/del',
  method: 'POST',
  data,
})
